﻿//  Copyright (c) 2011 Ray Liang (http://www.dotnetage.com)
//  Licensed MIT: http://www.opensource.org/licenses/mit-license.php

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace DNA.Mvc
{
    public static class UrlExtensions
    {
        public static string ThemeContent(this UrlHelper helper, string url)
        {
            return helper.Content("~/Content/Themes/" + WebSiteContext.Current.Web.Theme + "/" + url);
        }
    }
}